<!DOCTYPE html>
<html lang="zh-CN">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Snow - 编程语言</title>
  
  <!-- 引入外部资源 -->
  <script src="https://cdn.tailwindcss.com"></script>
  <link href="https://cdn.jsdelivr.net/npm/font-awesome@4.7.0/css/font-awesome.min.css" rel="stylesheet">
  <script src="https://cdn.jsdelivr.net/npm/chart.js@4.4.8/dist/chart.umd.min.js"></script>
  
  <!-- 配置Tailwind -->
  <script>
    tailwind.config = {
      theme: {
        extend: {
          colors: {
            primary: '#165DFF',
            secondary: '#36CFC9',
            dark: '#1D2129',
            light: '#F2F3F5',
            success: '#52C41A',
            warning: '#FAAD14',
            danger: '#FF4D4F',
          },
          fontFamily: {
            sans: ['Inter', 'system-ui', 'sans-serif'],
          },
        },
      }
    }
  </script>
  
  <!-- 自定义工具类 -->
  <style type="text/tailwindcss">
    @layer utilities {
      .content-auto {
        content-visibility: auto;
      }
      .text-shadow {
        text-shadow: 0 2px 4px rgba(0,0,0,0.1);
      }
      .bg-gradient-snow {
        background: linear-gradient(135deg, #f5f7fa 0%, #e4eaf1 100%);
      }
      .transition-custom {
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
      }
    }
  </style>
  
  
  
  <style>
    /* 全局样式 */
    html {
      scroll-behavior: smooth;
    }
    
    /* 动画效果 */
    @keyframes fadeIn {
      from { opacity: 0; transform: translateY(20px); }
      to { opacity: 1; transform: translateY(0); }
    }
    
    .animate-fade-in {
      animation: fadeIn 0.6s ease forwards;
    }
    
    .feature-card:hover {
      transform: translateY(-5px);
    }
    
    /* 滚动条样式 */
    ::-webkit-scrollbar {
      width: 8px;
    }
    
    ::-webkit-scrollbar-track {
      background: #f1f1f1;
    }
    
    ::-webkit-scrollbar-thumb {
      background: #c1c1c1;
      border-radius: 4px;
    }
    
    ::-webkit-scrollbar-thumb:hover {
      background: #a1a1a1;
    }
  </style>
</head>

<body class="font-sans text-dark bg-white">
  <!-- 导航栏 -->
  <body class="font-sans text-dark bg-white">
  <!-- 导航栏 -->
  <header id="navbar" class="fixed w-full top-0 z-50 transition-custom bg-white/90 backdrop-blur-sm shadow-sm">
    <div class="container mx-auto px-4 sm:px-6 lg:px-8">
      <div class="flex justify-between items-center py-4">
        <!-- Logo -->
        <div class="flex items-center space-x-2">
          <div class="w-10 h-10 rounded-lg bg-primary flex items-center justify-center">
            <i class="fa fa-snowflake-o text-white text-xl"></i>
          </div>
          <span class="text-xl font-bold text-dark">Snow</span>
        </div>

        <!-- 桌面导航 -->
        <nav class="hidden md:flex items-center space-x-8">
          <a href="#features" class="text-dark/80 hover:text-primary transition-custom">特性</a>
          <a href="#docs" class="text-dark/80 hover:text-primary transition-custom">文档</a>
          <a href="#download" class="text-dark/80 hover:text-primary transition-custom">下载</a>
          <a href="#community" class="text-dark/80 hover:text-primary transition-custom">社区</a>
          <a href="#contribute" class="text-dark/80 hover:text-primary transition-custom">贡献</a>
        </nav>

        <!-- 按钮组 -->
        <div class="hidden md:flex items-center space-x-4">
          <a href="https://gitee.com/jcnc-org/snow" target="_blank"
            class="px-4 py-2 rounded-md border border-primary text-primary hover:bg-primary/5 transition-custom">
            <i class="fa fa-git mr-1"></i> 仓库
          </a>
          <a href="#download"
            class="px-4 py-2 rounded-md bg-primary text-white hover:bg-primary/90 transition-custom shadow-md hover:shadow-lg">
            开始使用
          </a>
        </div>

        <!-- 移动端菜单按钮 -->
        <button id="menuBtn" class="md:hidden text-dark text-xl">
          <i class="fa fa-bars"></i>
        </button>
      </div>
    </div>

    <!-- 移动端导航菜单 -->
    <div id="mobileMenu" class="md:hidden hidden bg-white border-t animate-fade-in">
      <div class="container mx-auto px-4 py-3 space-y-3">
        <a href="#features" class="block py-2 text-dark/80 hover:text-primary transition-custom">特性</a>
        <a href="#docs" class="block py-2 text-dark/80 hover:text-primary transition-custom">文档</a>
        <a href="#download" class="block py-2 text-dark/80 hover:text-primary transition-custom">下载</a>
        <a href="#community" class="block py-2 text-dark/80 hover:text-primary transition-custom">社区</a>
        <a href="#contribute" class="block py-2 text-dark/80 hover:text-primary transition-custom">贡献</a>
        <div class="flex flex-col space-y-3 pt-2 border-t">
          <a href="https://gitee.com/jcnc-org/snow" target="_blank"
            class="px-4 py-2 rounded-md border border-primary text-primary text-center hover:bg-primary/5 transition-custom">
            <i class="fa fa-git mr-1"></i> 仓库
          </a>
          <a href="#download"
            class="px-4 py-2 rounded-md bg-primary text-white text-center hover:bg-primary/90 transition-custom shadow-md">
            开始使用
          </a>
        </div>
      </div>
    </div>
  </header>

  <main>
    
  <!-- 英雄区域 -->
      <!-- 英雄区域 -->
    <section class="pt-32 pb-20 md:pt-40 md:pb-32 bg-gradient-snow">
      <div class="container mx-auto px-4 sm:px-6 lg:px-8">
        <div class="max-w-4xl mx-auto text-center">
          <h1 class="text-[clamp(2rem,5vw,3.5rem)] font-bold leading-tight text-dark mb-6 text-shadow animate-fade-in"
            style="animation-delay: 0.1s">
            Snow<br class="md:hidden">编程语言
          </h1>
          <p class="text-[clamp(1rem,2vw,1.25rem)] text-dark/70 mb-10 max-w-3xl mx-auto animate-fade-in"
            style="animation-delay: 0.3s">
            Snow 是一门受 LLM 时代启发的、面向 AI 友好的编程语言
          </p>

          <p class="text-[clamp(1rem,2vw,1.25rem)] text-dark/70 mb-10 max-w-3xl mx-auto animate-fade-in"
            style="animation-delay: 0.3s">
            该项目实现了 Snow 语言的完整编译流程,包括词法分析,语法分析,语义分析,中间表示（IR）生成以及最终的虚拟机（VM）指令生成和执行器，提供从源码到字节码再到自研编程语言虚拟机 ( SnowVM)
            的完整编译-执行链路。
          </p>
          <div class="flex flex-col sm:flex-row justify-center gap-4 animate-fade-in" style="animation-delay: 0.5s">
            <a href="#download"
              class="px-8 py-3 rounded-md bg-primary text-white text-lg font-medium hover:bg-primary/90 transition-custom shadow-lg hover:shadow-xl transform hover:-translate-y-0.5">
              <i class="fa fa-download mr-2"></i> 立即下载
            </a>
            <a href="#docs"
              class="px-8 py-3 rounded-md border border-dark/20 text-dark text-lg font-medium hover:bg-dark/5 transition-custom shadow-md hover:shadow-lg transform hover:-translate-y-0.5">
              <i class="fa fa-book mr-2"></i> 查看文档
            </a>
          </div>

          <!-- 版本信息 -->
          <div class="mt-10 inline-block bg-white/80 backdrop-blur-sm px-4 py-2 rounded-full shadow-md animate-fade-in"
            style="animation-delay: 0.7s">
            <span class="text-dark/60">当前稳定版本：</span>
            <span class="font-medium text-primary">v1.2.0</span>
            <span class="mx-2 text-dark/30">•</span>
            <a href="#" class="text-dark/60 hover:text-primary transition-custom">查看更新日志</a>
          </div>
        </div>

        <!-- 展示图片 -->
        <div class="mt-16 max-w-5xl mx-auto animate-fade-in" style="animation-delay: 0.9s">
          <div class="rounded-xl overflow-hidden shadow-2xl border border-white/50">
            <img src="sections/images/snow.png" alt="Snow" class="w-full h-auto object-cover">
          </div>
        </div>
      </div>
    </section>


  <!-- 项目背景 -->
  <section class="py-20 bg-white">
    <div class="container mx-auto px-4 sm:px-6 lg:px-8">
        <div class="max-w-4xl mx-auto">
            <div class="text-center mb-12">
                <h2 class="text-[clamp(1.5rem,3vw,2.5rem)] font-bold text-dark mb-4">背景理念</h2>
                <div class="w-20 h-1 bg-primary mx-auto rounded-full"></div>
            </div>

            <div class="grid grid-cols-1 lg:grid-cols-5 gap-8 items-center">
                <div class="lg:col-span-2">
                    <div class="relative">
                        <img src="sections/images/background.png" alt="Snow项目背景"
                  class="rounded-xl shadow-lg w-full h-auto">
                        <div class="absolute -bottom-6 -right-6 bg-primary text-white p-4 rounded-lg shadow-lg hidden md:block">
                            <p class="font-bold text-2xl">补充内容</p>
                            <p class="text-sm opacity-90">补充内容</p>
                        </div>
                    </div>
                </div>

                <div class="lg:col-span-3 space-y-6">
                    <div>
                        <h3 class="text-xl font-semibold mb-3 flex items-center">
                            <span class="w-8 h-8 rounded-full bg-primary/10 flex items-center justify-center mr-3 flex-shrink-0">
                                <i class="fa fa-lightbulb-o text-primary"></i>
                            </span>
                  项目背景
                </h3>
                        <p class="text-dark/70 pl-11">
                  自 ChatGPT 3.5 诞生以来，越来越多的个人和企业将 LLM 生成的代码融入日常开发与自动化。然而，实践证明：LLM 生成的代码虽然“看起来没问题”，却常因对底层语言细节把握不准导致微妙
                  Bug——比如运算符优先级混淆、作用域处理错误、甚至基础库调用都无法编译通过。</p>
                    </div>

                    <div>
                        <h3 class="text-xl font-semibold mb-3 flex items-center">
                            <span class="w-8 h-8 rounded-full bg-primary/10 flex items-center justify-center mr-3 flex-shrink-0">
                                <i class="fa fa-bullseye text-primary"></i>
                            </span>
                  设计理念
                </h3>
                        <p class="text-dark/70 pl-11">
                  传统编程语言的设计多偏重“计算机”的执行效率，程序员往往在抽象表达和底层性能之间不断权衡。Ruby 之父松本行弘提出“为人而不是为机器编程”的理念。而在 LLM
                  日益普及的今天，我们应当承认：大型模型正成为“超级程序员”，它们不仅是助手，更是“代码生产的中介”。如果一门语言的语法和设计能最大化发挥 LLM 的推理与生成能力，人机协作的效率将被极大提升。</p>
                    </div>

                    <div>
                        <h3 class="text-xl font-semibold mb-3 flex items-center">
                            <span class="w-8 h-8 rounded-full bg-primary/10 flex items-center justify-center mr-3 flex-shrink-0">
                                <i class="fa fa-road text-primary"></i>
                            </span>
                  语言使命
                </h3>
                        <p class="text-dark/70 pl-11">
                  让编程语言不再“让人头疼”，而是“让 LLM 更加从容地书写”。目标受众涵盖 LLM 爱好者、开发者、对编译原理感兴趣的学生，以及对性能有追求的工程师甚至是初学者——每个人都能在 Snow
                  中找到乐趣与成长。</p>
                    </div>

                    <div class="pl-11 pt-4">
                        <a href="#" class="inline-flex items-center text-primary font-medium hover:underline">
                  查看完整项目历程 <i class="fa fa-long-arrow-right ml-2"></i>
                        </a>
                    </div>
                </div>
            </div>
        </div>
    </div>
</section>
  

  <!-- 合作伙伴/支持者  
  <section class="py-12 bg-white">
  <div class="container mx-auto px-4 sm:px-6 lg:px-8">
    <p class="text-center text-dark/50 mb-8 text-sm uppercase tracking-wider">受到以下组织的信任和支持</p>
    <div class="flex flex-wrap justify-center items-center gap-8 md:gap-16">
      <div class="text-dark/30 text-2xl font-bold">Company A</div>
      <div class="text-dark/30 text-2xl font-bold">Company B</div>
      <div class="text-dark/30 text-2xl font-bold">Company C</div>
      <div class="text-dark/30 text-2xl font-bold">Company D</div>
      <div class="text-dark/30 text-2xl font-bold">Company E</div>
    </div>
  </div>
</section>
-->

  <!-- 特性区域 -->
      <!-- 特性区域 -->
    <section id="features" class="py-20 bg-light">
      <div class="container mx-auto px-4 sm:px-6 lg:px-8">
        <div class="text-center max-w-3xl mx-auto mb-16">
          <h2 class="text-[clamp(1.5rem,3vw,2.5rem)] font-bold text-dark mb-4">强大特性，简单使用</h2>
          <p class="text-dark/70 text-lg">Snow 提供了一系列强大而直观的功能，帮助你轻松完成工作</p>
        </div>

        <div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-8">
          <!-- 特性卡片 1 -->
          <div class="feature-card bg-white rounded-xl p-6 shadow-md hover:shadow-lg transition-custom">
            <div class="w-12 h-12 rounded-lg bg-primary/10 flex items-center justify-center mb-5">
              <i class="fa fa-bolt text-primary text-xl"></i>
            </div>
            <h3 class="text-xl font-semibold mb-3">语言层</h3>
            <p class="text-dark/70">module / import / function / loop / if–else / Pratt 表达式解析
              静态类型检查 & 作用域分析</p>
          </div>

          <!-- 特性卡片 2 -->
          <div class="feature-card bg-white rounded-xl p-6 shadow-md hover:shadow-lg transition-custom">
            <div class="w-12 h-12 rounded-lg bg-primary/10 flex items-center justify-center mb-5">
              <i class="fa fa-code-fork text-primary text-xl"></i>
            </div>
            <h3 class="text-xl font-semibold mb-3">编译器前端</h3>
            <p class="text-dark/70">Lexer / Parser / Semantic Analyzer 全栈自研，生成 JSON-AST</p>
          </div>

          <!-- 特性卡片 3 -->
          <div class="feature-card bg-white rounded-xl p-6 shadow-md hover:shadow-lg transition-custom">
            <div class="w-12 h-12 rounded-lg bg-primary/10 flex items-center justify-center mb-5">
              <i class="fa fa-shield text-primary text-xl"></i>
            </div>
            <h3 class="text-xl font-semibold mb-3">IR & 后端</h3>
            <p class="text-dark/70">三地址式 IR ➜ 线性扫描寄存器分配 ➜ SnowVM 指令</p>
          </div>

          <!-- 特性卡片 4 -->
          <div class="feature-card bg-white rounded-xl p-6 shadow-md hover:shadow-lg transition-custom">
            <div class="w-12 h-12 rounded-lg bg-primary/10 flex items-center justify-center mb-5">
              <i class="fa fa-globe text-primary text-xl"></i>
            </div>
            <h3 class="text-xl font-semibold mb-3">虚拟机</h3>
            <p class="text-dark/70">栈 + 寄存器混合架构、GUI 局部变量监视</p>
          </div>

          <!-- 特性卡片 5 -->
          <div class="feature-card bg-white rounded-xl p-6 shadow-md hover:shadow-lg transition-custom">
            <div class="w-12 h-12 rounded-lg bg-primary/10 flex items-center justify-center mb-5">
              <i class="fa fa-cogs text-primary text-xl"></i>
            </div>
            <h3 class="text-xl font-semibold mb-3">snow pkg</h3>
            <p class="text-dark/70">- .cloud DSL 描述项目、依赖与构建<br>
- 预设 clean / compile / run / package / publish 任务<br>
- 离线缓存与远程仓库解析</p>
          </div>

          <!-- 特性卡片 6 -->
          <div class="feature-card bg-white rounded-xl p-6 shadow-md hover:shadow-lg transition-custom">
            <div class="w-12 h-12 rounded-lg bg-primary/10 flex items-center justify-center mb-5">
              <i class="fa fa-life-ring text-primary text-xl"></i>
            </div>
            <h3 class="text-xl font-semibold mb-3">CLI</h3>
            <p class="text-dark/70">snow init, snow compile, snow run, snow clean, snow build, snow generate</p>
          </div>
        </div>

        <!-- 数据统计 -->
        <div class="mt-20 grid grid-cols-2 md:grid-cols-4 gap-6 text-center">
          <div class="bg-white p-6 rounded-xl shadow-md">
            <div class="text-4xl font-bold text-primary mb-2" id="counter1">0</div>
            <p class="text-dark/70">活跃用户</p>
          </div>
          <div class="bg-white p-6 rounded-xl shadow-md">
            <div class="text-4xl font-bold text-primary mb-2" id="counter2">0</div>
            <p class="text-dark/70">GitHub星标</p>
          </div>
          <div class="bg-white p-6 rounded-xl shadow-md">
            <div class="text-4xl font-bold text-primary mb-2" id="counter3">0</div>
            <p class="text-dark/70">贡献者</p>
          </div>
          <div class="bg-white p-6 rounded-xl shadow-md">
            <div class="text-4xl font-bold text-primary mb-2" id="counter4">0</div>
            <p class="text-dark/70">下载次数</p>
          </div>
        </div>
      </div>
    </section>


  <!-- 使用场景 -->
  <section class="py-20 bg-white">
  <div class="container mx-auto px-4 sm:px-6 lg:px-8">
    <div class="text-center max-w-3xl mx-auto mb-16">
      <h2 class="text-[clamp(1.5rem,3vw,2.5rem)] font-bold text-dark mb-4">适用于多种场景</h2>
      <p class="text-dark/70 text-lg">无论你是个人开发者还是大型团队，Snow 都能为你提供有力支持</p>
    </div>
    
    <div class="grid grid-cols-1 lg:grid-cols-2 gap-12 items-center">
      <div>
        <img src="sections/images/use.png" alt="Snow使用场景展示" class="rounded-xl shadow-lg w-full h-auto">
      </div>
      <div class="space-y-6">
        <div class="flex gap-4">
          <div class="mt-1 flex-shrink-0 w-8 h-8 rounded-full bg-success/10 flex items-center justify-center">
            <i class="fa fa-check text-success"></i>
          </div>
          <div>
            <h3 class="text-xl font-semibold mb-2">个人项目开发</h3>
            <p class="text-dark/70">Snow 轻量级的特性使其成为个人项目的理想选择，不会带来额外负担。</p>
          </div>
        </div>
        
        <div class="flex gap-4">
          <div class="mt-1 flex-shrink-0 w-8 h-8 rounded-full bg-success/10 flex items-center justify-center">
            <i class="fa fa-check text-success"></i>
          </div>
          <div>
            <h3 class="text-xl font-semibold mb-2">企业级应用</h3>
            <p class="text-dark/70">强大的功能和稳定性使 Snow 能够满足企业级应用的严格要求。</p>
          </div>
        </div>
        
        <div class="flex gap-4">
          <div class="mt-1 flex-shrink-0 w-8 h-8 rounded-full bg-success/10 flex items-center justify-center">
            <i class="fa fa-check text-success"></i>
          </div>
          <div>
            <h3 class="text-xl font-semibold mb-2">教育和研究</h3>
            <p class="text-dark/70">开源免费的特性使 Snow 成为教育和研究领域的理想工具。</p>
          </div>
        </div>
        
        <div class="flex gap-4">
          <div class="mt-1 flex-shrink-0 w-8 h-8 rounded-full bg-success/10 flex items-center justify-center">
            <i class="fa fa-check text-success"></i>
          </div>
          <div>
            <h3 class="text-xl font-semibold mb-2">快速原型开发</h3>
            <p class="text-dark/70">简洁的API和丰富的功能让你能够快速构建和测试原型。</p>
          </div>
        </div>
      </div>
    </div>
  </div>
</section>


  <!-- 性能对比 
  <section class="py-20 bg-light">
  <div class="container mx-auto px-4 sm:px-6 lg:px-8">
    <div class="text-center max-w-3xl mx-auto mb-16">
      <h2 class="text-[clamp(1.5rem,3vw,2.5rem)] font-bold text-dark mb-4">卓越的性能表现</h2>
      <p class="text-dark/70 text-lg">与同类工具相比，Snow 在各项指标上都表现出色</p>
    </div>
    
    <div class="bg-white p-6 rounded-xl shadow-lg">
      <canvas id="performanceChart" height="300"></canvas>
    </div>
  </div>
</section>
-->

  <!-- 文档和教程 -->
  <!-- 文档和教程 -->
<section id="docs" class="py-20 bg-white">
  <div class="container mx-auto px-4 sm:px-6 lg:px-8">
    <div class="text-center max-w-3xl mx-auto mb-16">
      <h2 class="text-[clamp(1.5rem,3vw,2.5rem)] font-bold text-dark mb-4">项目文档</h2>
      <p class="text-dark/70 text-lg">丰富的学习资源帮助你快速掌握 Snow 的使用方法</p>
    </div>

    <div class="grid grid-cols-1 md:grid-cols-3 gap-8">
      <!-- 入门指南 -->
      <div class="bg-light rounded-xl overflow-hidden shadow-md hover:shadow-lg transition-custom">
        <div class="h-48 overflow-hidden">
          <img src="sections/images/document.png" alt="入门指南"
                class="w-full h-full object-cover transition-transform hover:scale-105 duration-500">
        </div>
        <div class="p-6">
          <h3 class="text-xl font-semibold mb-3">入门指南</h3>
          <p class="text-dark/70 mb-4">适合初学者的教程，从安装到基本使用，带你快速上手 Snow。</p>
          <a href="#" class="inline-flex items-center text-primary font-medium hover:underline">
                开始学习 <i class="fa fa-arrow-right ml-2"></i>
          </a>
        </div>
      </div>

      <!-- 项目历程 -->
      <div class="bg-light rounded-xl overflow-hidden shadow-md hover:shadow-lg transition-custom">
        <div class="h-48 overflow-hidden">
          <img src="sections/images/develop.png" alt="项目历程"
                class="w-full h-full object-cover transition-transform hover:scale-105 duration-500">
        </div>
        <div class="p-6">
          <h3 class="text-xl font-semibold mb-3">项目历程</h3>
          <p class="text-dark/70 mb-4">详细的项目开发历程，包括项目背景、功能介绍、技术实现等。</p>
          <a href="#" class="inline-flex items-center text-primary font-medium hover:underline">
                查看文档 <i class="fa fa-arrow-right ml-2"></i>
          </a>
        </div>
      </div>

      <!-- Git贡献规范 -->
      <div class="bg-light rounded-xl overflow-hidden shadow-md hover:shadow-lg transition-custom">
        <div class="h-48 overflow-hidden">
          <img src="sections/images/gitee.png" alt="Git贡献规范"
                class="w-full h-full object-cover transition-transform hover:scale-105 duration-500">
        </div>
        <div class="p-6">
          <h3 class="text-xl font-semibold mb-3">Git贡献规范</h3>
          <p class="text-dark/70 mb-4">遵循一致的代码风格和提交规范，以便于团队协作和代码审查。</p>
          <a href="#" class="inline-flex items-center text-primary font-medium hover:underline">
                深入学习 <i class="fa fa-arrow-right ml-2"></i>
          </a>
        </div>
      </div>
    </div>

    <!-- 快速开始 
        <div class="mt-16 bg-primary/5 rounded-xl p-8 border border-primary/20">
          <h3 class="text-2xl font-semibold mb-6">快速开始</h3>
          <div class="bg-dark rounded-lg p-4 text-white font-mono text-sm overflow-x-auto">
            <pre># 安装 Snow
npm install snow --save

# 引入 Snow
const snow = require('snow');

# 基本使用
const result = snow.process('Hello, World!');
console.log(result);</pre>
          </div>
          <div class="mt-6">
            <a href="#"
              class="inline-flex items-center px-6 py-3 bg-primary text-white rounded-md hover:bg-primary/90 transition-custom shadow-md">
              查看完整教程 <i class="fa fa-book ml-2"></i>
            </a>
          </div>
        </div>-->
  </div>
</section>

  <!-- 下载区域 -->
  <section id="download" class="py-20 bg-gradient-snow">
  <div class="container mx-auto px-4 sm:px-6 lg:px-8">
    <div class="text-center max-w-3xl mx-auto mb-16">
      <h2 class="text-[clamp(1.5rem,3vw,2.5rem)] font-bold text-dark mb-4">下载 Snow</h2>
      <p class="text-dark/70 text-lg">选择适合你操作系统的版本，开始使用 Snow</p>
    </div>
    
    <div class="grid grid-cols-1 md:grid-cols-3 gap-8 max-w-4xl mx-auto">
      <!-- Windows 版本 -->
      <div class="bg-white rounded-xl p-6 shadow-lg hover:shadow-xl transition-custom text-center">
        <div class="w-16 h-16 rounded-full bg-primary/10 flex items-center justify-center mx-auto mb-5">
          <i class="fa fa-windows text-primary text-2xl"></i>
        </div>
        <h3 class="text-xl font-semibold mb-2">Windows</h3>
        <p class="text-dark/60 mb-5">支持 Windows 10 及以上版本</p>
        <a href="#" class="inline-flex items-center justify-center px-5 py-2 bg-primary text-white rounded-md hover:bg-primary/90 transition-custom w-full">
          <i class="fa fa-download mr-2"></i> 下载安装包
        </a>
        <p class="text-dark/50 text-sm mt-3">版本: v1.2.0</p>
      </div>
      
      <!-- macOS 版本 -->
      <div class="bg-white rounded-xl p-6 shadow-lg hover:shadow-xl transition-custom text-center">
        <div class="w-16 h-16 rounded-full bg-primary/10 flex items-center justify-center mx-auto mb-5">
          <i class="fa fa-apple text-primary text-2xl"></i>
        </div>
        <h3 class="text-xl font-semibold mb-2">macOS</h3>
        <p class="text-dark/60 mb-5">支持 macOS 10.15 及以上版本</p>
        <a href="#" class="inline-flex items-center justify-center px-5 py-2 bg-primary text-white rounded-md hover:bg-primary/90 transition-custom w-full">
          <i class="fa fa-download mr-2"></i> 下载安装包
        </a>
        <p class="text-dark/50 text-sm mt-3">版本: v1.2.0</p>
      </div>
      
      <!-- Linux 版本 -->
      <div class="bg-white rounded-xl p-6 shadow-lg hover:shadow-xl transition-custom text-center">
        <div class="w-16 h-16 rounded-full bg-primary/10 flex items-center justify-center mx-auto mb-5">
          <i class="fa fa-linux text-primary text-2xl"></i>
        </div>
        <h3 class="text-xl font-semibold mb-2">Linux</h3>
        <p class="text-dark/60 mb-5">支持主流 Linux 发行版</p>
        <a href="#" class="inline-flex items-center justify-center px-5 py-2 bg-primary text-white rounded-md hover:bg-primary/90 transition-custom w-full">
          <i class="fa fa-download mr-2"></i> 下载安装包
        </a>
        <p class="text-dark/50 text-sm mt-3">版本: v1.2.0</p>
      </div>
    </div>
    
    <!-- 其他安装方式 -->
    <div class="mt-12 max-w-3xl mx-auto bg-white rounded-xl p-6 shadow-md">
      <h3 class="text-xl font-semibold mb-4">其他安装方式</h3>
      <div class="space-y-4">
        <div>
          <h4 class="font-medium mb-2">使用包管理器</h4>
          <div class="bg-dark rounded-lg p-3 text-white font-mono text-sm overflow-x-auto">
            <pre># 使用 npm
npm install -g snow

# 使用 yarn
yarn global add snow

# 使用 Homebrew (macOS)
brew install snow

# 使用 apt (Debian/Ubuntu)
sudo apt install snow</pre>
          </div>
        </div>
        
        <div>
          <h4 class="font-medium mb-2">从源码构建</h4>
          <div class="bg-dark rounded-lg p-3 text-white font-mono text-sm overflow-x-auto">
            <pre># 克隆仓库
git clone https://gitee.com/jcnc-org/snow.git

# 进入目录
cd snow

# 构建
make build

# 安装
sudo make install</pre>
          </div>
        </div>
      </div>
    </div>
  </div>
</section>


  <!-- 社区和支持 -->
  <section id="community" class="py-20 bg-white">
  <div class="container mx-auto px-4 sm:px-6 lg:px-8">
    <div class="text-center max-w-3xl mx-auto mb-16">
      <h2 class="text-[clamp(1.5rem,3vw,2.5rem)] font-bold text-dark mb-4">加入我们的社区</h2>
      <p class="text-dark/70 text-lg">与其他开发者交流，获取帮助，分享你的经验</p>
    </div>
    
    <div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-6">
      <!-- Gitee 仓库 -->
      <div class="bg-light rounded-xl p-6 text-center hover:shadow-md transition-custom">
        <div class="w-14 h-14 rounded-full bg-primary/10 flex items-center justify-center mx-auto mb-4">
          <i class="fa fa-git text-primary text-2xl"></i>
        </div>
        <h3 class="text-lg font-semibold mb-2">Gitee 仓库</h3>
        <p class="text-dark/70 text-sm mb-4">访问我们的代码仓库，提交 issues 和 PR</p>
        <a href="https://gitee.com/jcnc-org/snow" target="_blank" class="text-primary hover:underline inline-flex items-center">
          访问 <i class="fa fa-external-link ml-1"></i>
        </a>
      </div>
      
      <!-- 讨论区 -->
      <div class="bg-light rounded-xl p-6 text-center hover:shadow-md transition-custom">
        <div class="w-14 h-14 rounded-full bg-primary/10 flex items-center justify-center mx-auto mb-4">
          <i class="fa fa-comments text-primary text-2xl"></i>
        </div>
        <h3 class="text-lg font-semibold mb-2">讨论区</h3>
        <p class="text-dark/70 text-sm mb-4">提问、分享经验和参与讨论的地方</p>
        <a href="#" class="text-primary hover:underline inline-flex items-center">
          进入 <i class="fa fa-external-link ml-1"></i>
        </a>
      </div>
      
      <!-- 微信群 -->
      <div class="bg-light rounded-xl p-6 text-center hover:shadow-md transition-custom">
        <div class="w-14 h-14 rounded-full bg-primary/10 flex items-center justify-center mx-auto mb-4">
          <i class="fa fa-weixin text-primary text-2xl"></i>
        </div>
        <h3 class="text-lg font-semibold mb-2">微信群</h3>
        <p class="text-dark/70 text-sm mb-4">加入我们的微信群，与开发者实时交流</p>
        <a href="#" class="text-primary hover:underline inline-flex items-center">
          加入 <i class="fa fa-external-link ml-1"></i>
        </a>
      </div>
      
      <!-- 邮件列表 -->
      <div class="bg-light rounded-xl p-6 text-center hover:shadow-md transition-custom">
        <div class="w-14 h-14 rounded-full bg-primary/10 flex items-center justify-center mx-auto mb-4">
          <i class="fa fa-envelope text-primary text-2xl"></i>
        </div>
        <h3 class="text-lg font-semibold mb-2">邮件列表</h3>
        <p class="text-dark/70 text-sm mb-4">订阅我们的邮件列表，获取最新动态</p>
        <a href="#" class="text-primary hover:underline inline-flex items-center">
          订阅 <i class="fa fa-external-link ml-1"></i>
        </a>
      </div>
    </div>
    
    <!-- 常见问题 -->
    <div class="mt-16 max-w-3xl mx-auto">
      <h3 class="text-2xl font-semibold mb-8 text-center">常见问题</h3>
      
      <div class="space-y-4">
        <!-- 问题 1 -->
        <div class="border border-dark/10 rounded-lg overflow-hidden">
          <button class="faq-toggle w-full flex justify-between items-center p-4 bg-light hover:bg-light/70 transition-custom text-left">
            <span class="font-medium">Snow 是免费的吗？</span>
            <i class="fa fa-chevron-down text-dark/50 transition-transform"></i>
          </button>
          <div class="faq-content hidden p-4 border-t border-dark/10">
            <p class="text-dark/70">是的，Snow 是一个开源项目，基于 MIT 许可证发布，你可以免费使用、修改和分发它，无论是个人用途还是商业用途。</p>
          </div>
        </div>
        
        <!-- 问题 2 -->
        <div class="border border-dark/10 rounded-lg overflow-hidden">
          <button class="faq-toggle w-full flex justify-between items-center p-4 bg-light hover:bg-light/70 transition-custom text-left">
            <span class="font-medium">如何获取 Snow 的技术支持？</span>
            <i class="fa fa-chevron-down text-dark/50 transition-transform"></i>
          </button>
          <div class="faq-content hidden p-4 border-t border-dark/10">
            <p class="text-dark/70">你可以通过我们的 Gitee 仓库提交 issues，参与讨论区的讨论，加入微信群或发送邮件到 support@snow.org 获取技术支持。社区成员和开发者会尽力帮助你解决问题。</p>
          </div>
        </div>
        
        <!-- 问题 3 -->
        <div class="border border-dark/10 rounded-lg overflow-hidden">
          <button class="faq-toggle w-full flex justify-between items-center p-4 bg-light hover:bg-light/70 transition-custom text-left">
            <span class="font-medium">我可以为 Snow 贡献代码吗？</span>
            <i class="fa fa-chevron-down text-dark/50 transition-transform"></i>
          </button>
          <div class="faq-content hidden p-4 border-t border-dark/10">
            <p class="text-dark/70">当然可以！我们非常欢迎社区贡献。你可以查看我们的贡献指南，了解如何提交代码、修复 bug 或添加新功能。无论贡献大小，我们都非常感谢你的支持。</p>
          </div>
        </div>
        
        <!-- 问题 4 -->
        <div class="border border-dark/10 rounded-lg overflow-hidden">
          <button class="faq-toggle w-full flex justify-between items-center p-4 bg-light hover:bg-light/70 transition-custom text-left">
            <span class="font-medium">Snow 的未来发展计划是什么？</span>
            <i class="fa fa-chevron-down text-dark/50 transition-transform"></i>
          </button>
          <div class="faq-content hidden p-4 border-t border-dark/10">
            <p class="text-dark/70">我们有一个公开的路线图，详细说明了未来的发展计划，包括新功能、性能改进和其他增强。你可以在我们的文档中查看路线图，并通过社区渠道提供你的建议和反馈。</p>
          </div>
        </div>
      </div>
    </div>
  </div>
</section>


  <!-- 贡献者 -->
      <!-- 贡献者 -->
    <section id="contribute" class="py-20 bg-light">
      <div class="container mx-auto px-4 sm:px-6 lg:px-8">
        <div class="text-center max-w-3xl mx-auto mb-16">
          <h2 class="text-[clamp(1.5rem,3vw,2.5rem)] font-bold text-dark mb-4">贡献者</h2>
          <p class="text-dark/70 text-lg">感谢所有为 Snow 项目做出贡献的开发者</p>
        </div>

        <!-- 贡献者列表 -->
        <div class="flex flex-wrap justify-center gap-6">
          <!-- 贡献者 1 -->
          <div class="bg-white rounded-xl p-4 text-center shadow-sm hover:shadow-md transition-custom w-36">
            <img src="https://picsum.photos/100/100?random=10" alt="贡献者头像"
              class="w-20 h-20 rounded-full mx-auto mb-3 object-cover border-2 border-primary/20">
            <h3 class="font-medium">张三</h3>
            <p class="text-dark/60 text-sm">核心开发者</p>
          </div>

          <!-- 贡献者 2 -->
          <div class="bg-white rounded-xl p-4 text-center shadow-sm hover:shadow-md transition-custom w-36">
            <img src="https://picsum.photos/100/100?random=11" alt="贡献者头像"
              class="w-20 h-20 rounded-full mx-auto mb-3 object-cover border-2 border-primary/20">
            <h3 class="font-medium">李四</h3>
            <p class="text-dark/60 text-sm">文档维护</p>
          </div>

          <!-- 贡献者 3 -->
          <div class="bg-white rounded-xl p-4 text-center shadow-sm hover:shadow-md transition-custom w-36">
            <img src="https://picsum.photos/100/100?random=12" alt="贡献者头像"
              class="w-20 h-20 rounded-full mx-auto mb-3 object-cover border-2 border-primary/20">
            <h3 class="font-medium">王五</h3>
            <p class="text-dark/60 text-sm">bug 修复</p>
          </div>

          <!-- 贡献者 4 -->
          <div class="bg-white rounded-xl p-4 text-center shadow-sm hover:shadow-md transition-custom w-36">
            <img src="https://picsum.photos/100/100?random=13" alt="贡献者头像"
              class="w-20 h-20 rounded-full mx-auto mb-3 object-cover border-2 border-primary/20">
            <h3 class="font-medium">赵六</h3>
            <p class="text-dark/60 text-sm">测试</p>
          </div>

          <!-- 贡献者 5 -->
          <div class="bg-white rounded-xl p-4 text-center shadow-sm hover:shadow-md transition-custom w-36">
            <img src="https://picsum.photos/100/100?random=14" alt="贡献者头像"
              class="w-20 h-20 rounded-full mx-auto mb-3 object-cover border-2 border-primary/20">
            <h3 class="font-medium">钱七</h3>
            <p class="text-dark/60 text-sm">翻译</p>
          </div>

          <!-- 贡献者 6 -->
          <div class="bg-white rounded-xl p-4 text-center shadow-sm hover:shadow-md transition-custom w-36">
            <img src="https://picsum.photos/100/100?random=15" alt="贡献者头像"
              class="w-20 h-20 rounded-full mx-auto mb-3 object-cover border-2 border-primary/20">
            <h3 class="font-medium">孙八</h3>
            <p class="text-dark/60 text-sm">UI 设计</p>
          </div>
        </div>

        <!-- 如何贡献 -->
        <div class="mt-16 max-w-3xl mx-auto bg-white rounded-xl p-8 shadow-md">
          <h3 class="text-2xl font-semibold mb-6">如何贡献</h3>
          <div class="space-y-4">
            <div class="flex gap-4">
              <div class="flex-shrink-0 w-8 h-8 rounded-full bg-primary/10 flex items-center justify-center mt-1">
                <span class="font-medium text-primary">1</span>
              </div>
              <div>
                <h4 class="font-medium"> Fork 仓库</h4>
                <p class="text-dark/70">在 Gitee 上 fork 我们的仓库到你自己的账号下。</p>
              </div>
            </div>

            <div class="flex gap-4">
              <div class="flex-shrink-0 w-8 h-8 rounded-full bg-primary/10 flex items-center justify-center mt-1">
                <span class="font-medium text-primary">2</span>
              </div>
              <div>
                <h4 class="font-medium">提交修改</h4>
                <p class="text-dark/70">在你的 fork 仓库中进行修改，可以是修复 bug、添加新功能或改进文档。</p>
              </div>
            </div>

            <div class="flex gap-4">
              <div class="flex-shrink-0 w-8 h-8 rounded-full bg-primary/10 flex items-center justify-center mt-1">
                <span class="font-medium text-primary">3</span>
              </div>
              <div>
                <h4 class="font-medium">创建 Pull Request</h4>
                <p class="text-dark/70">将你的修改提交为 Pull Request，我们会审核并合并你的贡献。</p>
              </div>
            </div>
          </div>

          <div class="mt-8">
            <a href="https://gitee.com/jcnc-org/snow" target="_blank"
              class="inline-flex items-center px-6 py-3 bg-primary text-white rounded-md hover:bg-primary/90 transition-custom shadow-md">
              查看贡献指南 <i class="fa fa-git ml-2"></i>
            </a>
          </div>
        </div>
      </div>
    </section>

  <!-- 订阅区域 
  <section class="py-20 bg-primary text-white">
  <div class="container mx-auto px-4 sm:px-6 lg:px-8">
    <div class="max-w-3xl mx-auto text-center">
      <h2 class="text-[clamp(1.5rem,3vw,2.5rem)] font-bold mb-4">获取最新动态</h2>
      <p class="text-white/80 text-lg mb-8">订阅我们的通讯，及时了解 Snow 的更新、新功能和活动信息</p>
      
      <form class="flex flex-col sm:flex-row gap-3 max-w-lg mx-auto">
        <input type="email" placeholder="输入你的邮箱地址" class="flex-grow px-4 py-3 rounded-md text-dark focus:outline-none focus:ring-2 focus:ring-white">
        <button type="submit" class="px-6 py-3 bg-white text-primary font-medium rounded-md hover:bg-white/90 transition-custom shadow-md whitespace-nowrap">
          立即订阅
        </button>
      </form>
      
      <p class="text-white/60 text-sm mt-4">我们尊重你的隐私，不会向第三方分享你的信息</p>
    </div>
  </div>
</section>


  </main>
  
  <!-- 页脚 -->
  <footer class="bg-dark text-white pt-16 pb-8">
  <div class="container mx-auto px-4 sm:px-6 lg:px-8">
    <div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-8 mb-12">
      <!-- 项目介绍 -->
      <div>
        <div class="flex items-center space-x-2 mb-6">
          <div class="w-10 h-10 rounded-lg bg-white flex items-center justify-center">
            <i class="fa fa-snowflake-o text-primary text-xl"></i>
          </div>
          <span class="text-xl font-bold">Snow</span>
        </div>
        <p class="text-white/60 mb-6">简洁而强大的开源工具，旨在简化开发流程，提高工作效率。</p>
        <div class="flex space-x-4">
          <a href="#" class="w-10 h-10 rounded-full bg-white/10 flex items-center justify-center hover:bg-primary transition-custom">
            <i class="fa fa-git"></i>
          </a>
          <a href="#" class="w-10 h-10 rounded-full bg-white/10 flex items-center justify-center hover:bg-primary transition-custom">
            <i class="fa fa-twitter"></i>
          </a>
          <a href="#" class="w-10 h-10 rounded-full bg-white/10 flex items-center justify-center hover:bg-primary transition-custom">
            <i class="fa fa-weixin"></i>
          </a>
          <a href="#" class="w-10 h-10 rounded-full bg-white/10 flex items-center justify-center hover:bg-primary transition-custom">
            <i class="fa fa-envelope"></i>
          </a>
        </div>
      </div>
      
      <!-- 快速链接 -->
      <div>
        <h3 class="text-lg font-semibold mb-6">快速链接</h3>
        <ul class="space-y-3">
          <li><a href="#features" class="text-white/60 hover:text-white transition-custom">特性</a></li>
          <li><a href="#docs" class="text-white/60 hover:text-white transition-custom">文档</a></li>
          <li><a href="#download" class="text-white/60 hover:text-white transition-custom">下载</a></li>
          <li><a href="#community" class="text-white/60 hover:text-white transition-custom">社区</a></li>
          <li><a href="#contribute" class="text-white/60 hover:text-white transition-custom">贡献</a></li>
        </ul>
      </div>
      
      <!-- 资源 -->
      <div>
        <h3 class="text-lg font-semibold mb-6">资源</h3>
        <ul class="space-y-3">
          <li><a href="#" class="text-white/60 hover:text-white transition-custom">教程</a></li>
          <li><a href="#" class="text-white/60 hover:text-white transition-custom">API 文档</a></li>
          <li><a href="#" class="text-white/60 hover:text-white transition-custom">示例</a></li>
          <li><a href="#" class="text-white/60 hover:text-white transition-custom">博客</a></li>
          <li><a href="#" class="text-white/60 hover:text-white transition-custom">常见问题</a></li>
        </ul>
      </div>
      
      <!-- 联系我们 -->
      <div>
        <h3 class="text-lg font-semibold mb-6">联系我们</h3>
        <ul class="space-y-3">
          <li class="flex items-center space-x-3">
            <i class="fa fa-envelope text-white/60"></i>
            <span class="text-white/60">contact@snow.org</span>
          </li>
          <li class="flex items-center space-x-3">
            <i class="fa fa-git text-white/60"></i>
            <a href="https://gitee.com/jcnc-org/snow" target="_blank" class="text-white/60 hover:text-white transition-custom">Gitee 仓库</a>
          </li>
          <li class="flex items-center space-x-3">
            <i class="fa fa-map-marker text-white/60"></i>
            <span class="text-white/60">中国</span>
          </li>
        </ul>
      </div>
    </div>
    
    <div class="border-t border-white/10 pt-8">
      <div class="flex flex-col md:flex-row justify-between items-center">
        <p class="text-white/60 text-sm mb-4 md:mb-0">© 2025 Snow 编程语言. 保留所有权利.</p>
        <div class="flex space-x-6">
          <a href="#" class="text-white/60 hover:text-white text-sm transition-custom">隐私政策</a>
          <a href="#" class="text-white/60 hover:text-white text-sm transition-custom">使用条款</a>
          <a href="#" class="text-white/60 hover:text-white text-sm transition-custom">许可证</a>
        </div>
      </div>
    </div>
  </div>
</footer>

  
  <!-- 返回顶部按钮 -->
  <button id="backToTop" class="fixed bottom-8 right-8 w-12 h-12 rounded-full bg-primary text-white shadow-lg flex items-center justify-center opacity-0 invisible transition-custom z-50">
    <i class="fa fa-chevron-up"></i>
  </button>
  
  <!-- 公共JavaScript -->
  <script>
    // 移动端菜单切换
    const menuBtn = document.getElementById('menuBtn');
    const mobileMenu = document.getElementById('mobileMenu');
    
    menuBtn.addEventListener('click', () => {
      mobileMenu.classList.toggle('hidden');
      const icon = menuBtn.querySelector('i');
      if (mobileMenu.classList.contains('hidden')) {
        icon.classList.remove('fa-times');
        icon.classList.add('fa-bars');
      } else {
        icon.classList.remove('fa-bars');
        icon.classList.add('fa-times');
      }
    });
    
    // 导航栏滚动效果
    const navbar = document.getElementById('navbar');
    let lastScrollTop = 0;
    
    window.addEventListener('scroll', () => {
      const scrollTop = window.pageYOffset || document.documentElement.scrollTop;
      
      if (scrollTop > 100) {
        navbar.classList.add('shadow-md');
        navbar.classList.remove('shadow-sm');
      } else {
        navbar.classList.remove('shadow-md');
        navbar.classList.add('shadow-sm');
      }
      
      lastScrollTop = scrollTop;
    });
    
    // 返回顶部按钮
    const backToTopBtn = document.getElementById('backToTop');
    
    window.addEventListener('scroll', () => {
      if (window.pageYOffset > 300) {
        backToTopBtn.classList.remove('opacity-0', 'invisible');
        backToTopBtn.classList.add('opacity-100', 'visible');
      } else {
        backToTopBtn.classList.add('opacity-0', 'invisible');
        backToTopBtn.classList.remove('opacity-100', 'visible');
      }
    });
    
    backToTopBtn.addEventListener('click', () => {
      window.scrollTo({
        top: 0,
        behavior: 'smooth'
      });
    });

    // 数字计数器动画
    function animateCounter(element, target, duration = 2000) {
      let start = 0;
      const increment = target / (duration / 16);
      const timer = setInterval(() => {
        start += increment;
        if (start >= target) {
          clearInterval(timer);
          element.textContent = target.toLocaleString();
        } else {
          element.textContent = Math.floor(start).toLocaleString();
        }
      }, 16);
    }
    
    // 检查元素是否在视口中
    function isInViewport(element) {
      const rect = element.getBoundingClientRect();
      return (
        rect.top >= 0 &&
        rect.left >= 0 &&
        rect.bottom <= (window.innerHeight || document.documentElement.clientHeight) &&
        rect.right <= (window.innerWidth || document.documentElement.clientWidth)
      );
    }

    
  // 初始化计数器
  let countersAnimated = false;
         const counters = [{
               id: 'counter1',
               target: '暂无数据'
            },
            {
               id: 'counter2',
               target: '暂无数据'
            },
            {
               id: 'counter3',
               target: '暂无数据'
            },
            {
               id: 'counter4',
               target: '暂无数据'
            }
         ];
  
  // 监听滚动，当计数器区域进入视口时开始动画
  window.addEventListener('scroll', () => {
    if (!countersAnimated && isInViewport(document.getElementById('counter1'))) {
      counters.forEach(counter => {
        animateCounter(document.getElementById(counter.id), counter.target);
      });
      countersAnimated = true;
    }
  });
  
  // 如果页面加载时计数器已经在视口中，直接开始动画
  if (isInViewport(document.getElementById('counter1'))) {
    counters.forEach(counter => {
      animateCounter(document.getElementById(counter.id), counter.target);
    });
    countersAnimated = true;
  }
  
  // 初始化性能图表
  function initPerformanceChart() {
    const ctx = document.getElementById('performanceChart').getContext('2d');
    
    new Chart(ctx, {
      type: 'bar',
      data: {
        labels: ['启动速度', '内存占用', '处理效率', '扩展性', '易用性'],
        datasets: [
          {
            label: 'Snow',
            data: [90, 85, 92, 88, 95],
            backgroundColor: '#165DFF',
            borderRadius: 6
          },
          {
            label: '竞品 A',
            data: [75, 65, 80, 70, 85],
            backgroundColor: '#36CFC9',
            borderRadius: 6
          },
          {
            label: '竞品 B',
            data: [65, 70, 75, 60, 80],
            backgroundColor: '#FAAD14',
            borderRadius: 6
          }
        ]
      },
      options: {
        responsive: true,
        plugins: {
          legend: {
            position: 'top',
          },
          title: {
            display: true,
            text: '性能对比 (分数越高越好)'
          }
        },
        scales: {
          y: {
            beginAtZero: true,
            max: 100
          }
        }
      }
    });
  }
  
  // FAQ 折叠面板
  const faqToggles = document.querySelectorAll('.faq-toggle');
  
  faqToggles.forEach(toggle => {
    toggle.addEventListener('click', () => {
      const content = toggle.nextElementSibling;
      const icon = toggle.querySelector('i');
      
      content.classList.toggle('hidden');
      icon.classList.toggle('rotate-180');
      
      // 关闭其他打开的FAQ
      faqToggles.forEach(otherToggle => {
        if (otherToggle !== toggle) {
          const otherContent = otherToggle.nextElementSibling;
          const otherIcon = otherToggle.querySelector('i');
          
          otherContent.classList.add('hidden');
          otherIcon.classList.remove('rotate-180');
        }
      });
    });
  });
  
  // 页面加载完成后初始化图表
  window.addEventListener('load', initPerformanceChart);

  </script>
</body>
</html>
